#ifndef PLAYER__H
#define PLAYER__H
#include <Windows.h>
#include <string>

class PlayerState;
class Player_impl;

class Player{
public:

    Player();
    ~Player();
    bool OpenFile(const std::wstring& file_name);
    bool CloseFile();
    
    bool Play();
    bool PlayFromTo(long start_pos, long end_pos);
    bool PlayFrom(long pos);
    
    long GetFileLength();
    long GetCurrentPos();

    bool Pause();
    bool Resume();
    bool Stop();
    void Init(HWND, HINSTANCE);

private:
    Player_impl* impl_;
};

#endif
